package dao;

import org.apache.ibatis.annotations.Param;
import java.util.List;
import bean.pojo.GdArticle;

public interface GdArticleMapper {

    int insert(@Param("pojo") GdArticle pojo);

    int insertList(@Param("pojos") List< GdArticle> pojo);

    List<GdArticle> select(@Param("pojo") GdArticle pojo);

    List<GdArticle> selectByCategory(@Param("classify")String classify,
                                     @Param("categoryId") Long categoryId);

    int updateViewNum(@Param("articleId") Long articleId);

    int update(@Param("pojo") GdArticle pojo);

}
